package com.ruoyi.security.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import com.ruoyi.system.api.domain.SysFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 法规制度对象 omp_af_rule
 *
 * @author cjie
 * @date 2021-07-24
 */
@Data
@ApiModel
public class AfRule extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 法规名称 */
    @Excel(name = "法规名称")
    @ApiModelProperty(value = "法规名称")
    private String ruleName;

    /** 生效日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "生效日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "生效日期")
    private Date effectiveDate;

    /** 法规类型 */
    @Excel(name = "法规类型")
    @ApiModelProperty(value = "法规类型")
    private String ruleType;

    /** 关键字 */
    @Excel(name = "关键字")
    @ApiModelProperty(value = "关键字")
    private String keyword;

    /** 适用范围 */
    @Excel(name = "适用范围")
    @ApiModelProperty(value = "适用范围")
    private String applicationScope;

    /** 删除标志(0正常 1删除) */
    @ApiModelProperty(value = "删除标志(0正常 1删除)")
    private String delFlag;

    /** 租户Id */
    @Excel(name = "租户Id")
    @ApiModelProperty(value = "租户Id")
    private String tenantId;

    /** 法规种类 */
    @Excel(name = "法规种类")
    @ApiModelProperty(value = "法规种类")
    private String category;

    //以下属性为页面视图属性
    /** 附件份数 */
    @Excel(name = "附件份数")
    @ApiModelProperty(value = "附件份数")
    private Integer fileAmount;

    /** 附件id集合 */
    @Excel(name = "附件id集合")
    @ApiModelProperty(value = "附件id集合")
    private List<Long> fileIdList;

    /** 附件集合 */
    @Excel(name = "附件集合")
    @ApiModelProperty(value = "附件集合")
    private List<SysFile> fileList;


    /** 日期下限*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期下限", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "日期下限")
    private Date beginDate;

    /** 日期上限*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期上限", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "日期上限")
    private Date endDate;
}
